package eiisan.service.task;

import eiisan.service.task.base.TaskService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Slf4j
@Component
@Transactional
@Service
public class HelloWorldTask implements TaskService {

    @Override
    public String getDescription() {
        return "hello测试";
    }

    @Override
    public void run() {
        System.out.println("hello world!");
        log.info("hello world!");
    }
}
